# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=allthevhosts
pkgver=1.0
pkgrel=8
groups=('blackarch' 'blackarch-scanner' 'blackarch-webapp')
pkgdesc='A vhost discovery tool that scrapes various web applications.'
arch=('any')
url='http://labs.portcullis.co.uk/tools/finding-all-the-vhosts/'
license=('GPL')
depends=('python2' 'python2-beautifulsoup4')
source=("http://labs.portcullis.co.uk/download/$pkgname.tar.gz"
        'allthevhosts.py.patch')
sha512sums=('18e29cd7ced958ee0d2753088fdbd2073abcf48b35601a0405a5d6ad2dc1a35ce1b933c6952131909b283ea607ec5a718a7d879cf1b732b3908d9551af73e758'
            '60c53330aa0634075c5109a8c41cdedfd8733958165f7d1e2941a64ca02d3101fc6015c14221b2bbea70dcc51cb8f10977a562a4737d1dbb1d4d8e5df515ba9f')

prepare() {
  sed -i '1i\#!/usr/bin/env python2' allthevhosts.py

  patch < allthevhosts.py.patch
}

package() {
  install -Dm 755 allthevhosts.py "$pkgdir/usr/bin/$pkgname"
}

